/**
 * 配置编译环境和线上环境之间的切换
 */
//项目中各页面之间跳转的url
 let baseUrl = 'localhost:8080'
//  let serverIP = '47.98.124.122:8080'
 let serverIP = '192.168.0.57:8090'
 //服务器根url
 let serverUrl = ''
 //api接口url
 let apiUrl = ''
 //服务器资源url
 let rescourceBaseUrl = ''
 //websocketurl
 let webSocketUrl = ''

if (process.env.NODE_ENV == 'development') {
    serverUrl = `http://${serverIP}/newExp`
}else if(process.env.NODE_ENV == 'production'){
    baseUrl = 'localhost:8080';
    serverUrl = `http://${serverIP}/newExp`
}
rescourceBaseUrl = `${serverUrl}/resources/upload/`
webSocketUrl = `ws://${serverIP}/newExp/api/socketServer.do`
apiUrl = `${serverUrl}/api/`

export {
  baseUrl,
  serverUrl,
  rescourceBaseUrl,
  webSocketUrl,
  apiUrl,
}
